package com.example.orderconsumer.controller;

import com.example.orderconsumer.service.ProductRemote;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName OrderController
 * @Description TODO
 * @Author yaozhaobao
 * @Date 2020/12/6 14:19
 * @Version 1.0
 **/
@RestController
@RequestMapping("/order")
public class OrderController {



    @Resource
    ProductRemote productRemote;



    @RequestMapping("/pay")
    public String getProductPay(){
        return productRemote.getProductionById("10");
    }

}
